-
Notifications
You must be signed in to change notification settings - Fork 76
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor(menu-item,menu): keyboard interaction #6819
refactor(menu-item,menu): keyboard interaction #6819
Conversation
@@ -172,8 +177,6 @@ export class CalciteMenuItem implements LoadableComponent { | |||
this.active = this.active || this.editable; | |||
this.isFocused = this.active; | |||
// todo just get any nav items in the default slot? | |||
// this.hasSubMenu = this.hasSlottedItems(); | |||
|
|||
// for now to detect nesting only working two level for demo.need to just check if it has any parent originating at top lvel |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we remove any todo / wip items (I think these are probably mine, ha)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i left them to keep a track of whats leftover. Are these irrelevant?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
removed them.
@@ -504,9 +398,8 @@ export class CalciteMenuItem implements LoadableComponent { | |||
: "chevron-down" | |||
: dirChevron | |||
} | |||
onClick={() => (this.open = !this.open)} | |||
onClick={this.clickHandler} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Excellent!
Related Issue: #6531
Summary
Refactors keyboard navigation and cleanup